package com.school.admin;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @program: backstage-admin
 * @description: 启动类
 * @author: sunpx
 * @create: 2022-03-24 16:10
 **/
@SpringBootApplication
@EnableTransactionManagement
@Slf4j
@ComponentScan(basePackages = {"com.school.admin","com.school.generator"})
@MapperScan(basePackages = {"com.school.admin.mapper","com.school.generator.mapper"})
public class BackstageAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(BackstageAdminApplication.class, args);
        log.info("==========项目启动成功==========");
    }
}
